#include <iostream>
#include <iomanip>

using namespace std;

void GPMRC()
{
double R;
int C;
double P;
double G;

cout <<"Welcome to the Gross Profit Margin Ratio calculator. \n"<< 
"Programed by Emmanuel Mendez." << endl;

cout <<"Please enter the company's revenues for the year."<< endl;
cin >> R;

cout <<"Please enter the company's Cost Of Goods Sold for the year."<< endl;
cin >> C;

P= R - C;

G = P/R;

cout <<"The company's Profit for the year is: "<< P << endl;

cout << setprecision (2) <<"The company's Gross Profit Margin Ratio for the year is: \n $"<< 
G << " of profit per dollar"<< endl;

system ("PAUSE");

}